<span class="pull-right">
  <button class="layui-btn" onclick="add('group_add.html','添加用户组')">
    <i class="layui-icon">&#xe608;</i> 用户组添加
  </button>
</span>
<table class="layui-table">
  <colgroup>
    <col >
    <col >
    <col >
  </colgroup>
  <thead>
    <tr>
      <th>用户组</th>
      <th>名称</th>
      <th>操作</th>
    </tr> 
  </thead>
  <tbody>
    {volist name="list" id="vo"}
      <tr>
        <td>{$vo.group}</td>
        <td>{$vo.name}</td>
        <td>
        	{if condition="$vo.group == 0"}
            <div class="layui-btn-group">
              <button class="layui-btn layui-btn-disabled layui-btn-small ">
                <i class="layui-icon">&#xe642;</i>
              </button>
              <button class="layui-btn layui-btn-disabled layui-btn-small ">
                <i class="layui-icon">&#xe640;</i>
              </button>            
            </div> 
          {else/}
            <div class="layui-btn-group">
              <button class="layui-btn layui-btn-primary layui-btn-small" onclick="edit('group_edit.html',{$vo.id},'用户组修改！')">
                <i class="layui-icon">&#xe642;</i>
              </button>
              <button class="layui-btn layui-btn-primary layui-btn-small" onclick="del('group_del.html',{$vo.id})">
                <i class="layui-icon" style="color: red">&#xe640;</i>
              </button>            
            </div> 
 					{/if}
        </td>
      </tr>
    {/volist}
  </tbody>
</table>
          